package com.tf.pemporaryfood.controller;

import com.tf.pemporaryfood.service.UploadService;
import com.tf.pemporaryfood.util.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * TODO
 *
 * @author Young genius
 * @date 2021年06月10日 15:19
 */
@RequestMapping("/upload")
@RestController
public class UploadController {
    @Autowired
    UploadService uploadService;


    @PostMapping("/uploadImageOfGoods")
    public ApiResult<List<String>> uploadImageOfGoods(HttpServletRequest request){
        return uploadService.uploadImageOfGoods(request);
    }
}
